package bnetwork;

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

public class Region {

	protected float pWarmSummer;
	protected float pColdSummer;
	protected float pFrigidSummer;
	protected float pWarmWinter;
	protected float pColdWinter;
	protected float pFrigidWinter;

	List<Block> blocks;
	int id;
	public Region(int id, float psw, float psc, float psf, float pww, float pwc, float pwf){
		this.id = id;
		this.pWarmSummer = psw;
		this.pColdSummer = psc;
		this.pFrigidSummer = psf;
		this.pWarmWinter = pww;
		this.pColdWinter = pwc;
		this.pFrigidWinter = pwf;
		blocks = new LinkedList<Block>();
	}
	public void addBlock(Block b){
		blocks.add(b);
	}
	public int getNumBlocks() {
		return blocks.size();
	}
	public Collection<Block> getBlocks() {

		return blocks;
	}
	public float[][] getClimateProb() {
		return new float[][]{
			{pWarmSummer, pColdSummer, pFrigidSummer},	//{W,C,F} for season summer region i
			{pWarmWinter, pColdWinter, pFrigidWinter}};	//{W,C,F} for season winter region i
	}


}
